package cn.zqw.entity;

import lombok.Data;

import java.util.List;

@Data
public class Teacher {
    private int id;

    private String name;

    private List<Student> studentList;

    public Teacher() {
    }

    public Teacher(int id, String name, List<Student> studentList) {
        this.id = id;
        this.name = name;
        this.studentList = studentList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Student> getList() {
        return studentList;
    }

    public void setList(List<Student> studentList) {
        this.studentList = studentList;
    }


}
